package com.atguigu.common.constants;

public class ProductConstants {

    public enum AttrEnum{
        ATTR_BASE_TYPE(1,"基本属性"),ATTR_SALE_TYPE(0,"销售属性");
        private int code;
        private String msg;

        AttrEnum (int code,String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum SpuStatusEnum{
        NEW_SPU(0,"新建SPU"),SPU_UP(1,"上架SPU"),SPU_DOWN(2,"下架SPU");
        private int code;
        private String msg;

        SpuStatusEnum (int code,String msg){
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }
}
